/* Forum Control App - 论坛控制应用样式 */

.forum-control-app {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 控制区域 */
.control-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}
#forum-threshold,#forum-custom-prefix{color: #333 !important;}
/* 表单组件 */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* 复选框 */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.checkbox-label {
    font-weight: 500;
    color: #495057;
}

/* 按钮组 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.control-btn.primary {
    background: #667eea;
    color: white;
}

.control-btn.primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.control-btn.primary:active {
    transform: translateY(0);
}

.control-btn.danger {
    background: #e74c3c;
    color: white;
}

.control-btn.danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.control-btn.danger:active {
    transform: translateY(0);
}

.control-btn.secondary {
    background: #95a5a6;
    color: white;
}

.control-btn.secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.control-btn.secondary:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 16px;
}

/* 状态显示 */
.status-display {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #495057;
    border: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .forum-control-app {
        padding: 12px;
        gap: 12px;
    }

    .control-section {
        padding: 12px;
    }

    .section-title {
        font-size: 15px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px;
        font-size: 13px;
    }

    .control-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .forum-control-app {
        background: #1a1a1a;
    }

    .control-section {
        background: #2d2d2d;
        border-color: #404040;
    }

    .section-title {
        color: #e9ecef;
    }

    .form-label {
        color: #ced4da;
    }

    .form-input,
    .form-select,
    .form-textarea {
        background: #3a3a3a;
        border-color: #555;
        color: #e9ecef;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    }

    .form-hint {
        color: #adb5bd;
    }

    .checkbox-label {
        color: #ced4da;
    }

    .status-display {
        background: #343a40;
        border-color: #495057;
        color: #ced4da;
    }
}

/* 动画效果 */
.control-section {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .control-btn {
    position: relative;
    overflow: hidden;
}

.loading .control-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 错误状态 */
.error-state {
    padding: 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-size: 14px;
    text-align: center;
}

/* 成功状态 */
.success-state {
    padding: 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    font-size: 14px;
    text-align: center;
}

/* 无障碍支持 */
.control-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
}

/* 触摸友好 */
@media (hover: none) {
    .control-btn:hover {
        transform: none;
    }

    .control-btn:active {
        transform: scale(0.98);
    }
}
